#ifndef __parser_h__
#define __parser_h__ 

#include "pbc.h"


struct pbc *pbc_create();
void pbc_free(struct pbc *p);

struct pbc *pbc_parser(char *buffer);
struct pbc_env *pbc_env_query(struct pbc *p, const char *msgname);
struct pbc_field *pbc_field_query(struct pbc_env *env, const char *fname);
struct pbc_field *pbc_field_query_fn(struct pbc_env *env, int fnumber);


const char *wire_to_string(int wire);

#endif
